package com.wyl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.wyl.common.BaseModel;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description 字典数据表
 * @Author WuYiLong
 * @Date 2025-04-27
 */
@Data
@TableName("sys_dict_data")
@Entity
@Table(name="sys_dict_data")
@org.hibernate.annotations.Table(appliesTo = "sys_dict_data",comment = "字典数据表")
public class SysDictData extends BaseModel<SysDictData> {

    private static final long serialVersionUID = 1L;

    @Column(columnDefinition = "bigint comment '字典类型ID'")
    private Long typeId;

    @Column(columnDefinition = "varchar(200) comment '字典类型编码（冗余存储，方便查询）'")
    private String typeCode;

    @Column(columnDefinition = "varchar(200) comment '字典名称'")
    private String name;

    @Column(columnDefinition = "varchar(200) comment '字典值'")
    private String value;

    @Column(columnDefinition = "int comment '排序'")
    private Integer sort;

    @Column(columnDefinition = "tinyint comment '状态（0正常 1停用）''")
    private Integer status;

    @Column(columnDefinition = "int comment '级别'")
    private Integer level;

    @Column(columnDefinition = "varchar(200) comment '级别编码'")
    private String levelCode;

    @Column(columnDefinition = "varchar(200) comment '备注'")
    private String remark;

}
